﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<System.Xml.Linq.XElement>" %>
<li>
    <div class="HOT_SEARCH">
        <ul>
        <li class="RIGHT_SEARCH_TITLE">熱門搜尋</li>
        <li class="RIGHT_SEARCH_CONTENT">
            <%
                string li = string.Empty;
                foreach (var xe in Model.Elements("HotKey"))
                {
                    string color = MensUnoShop.Models.Config.hotkeycolor[int.Parse(xe.Attribute("Color").Value)];
                    li += "<a href=\"/region/search?keyword=" + xe.Element("Keyword").Value + "\" style=\"color:" + color + "\">" + xe.Element("Keyword").Value + "</a>．";
                }
                li.Remove(li.Length - 1);
                %>
              <%=li %>
        </li>
        </ul>
    </div>
</li>
